
/*!
 * \file      crazycoloredshape.cpp
 * \brief     CrazyColoredShape implementation.
 * \author    Duriez Franck
 * \author    Carton Paul-Henri
 * \version   0.1
 */

#include "constant.h"
#include "assert_macros.h"
#include "crazycoloredshape.h"
#include "crazycoloredsquare.h"

CrazyColoredShape::CrazyColoredShape(QSFMLWidget *displayWidget, QObject *parent, float *dt) : /*{{{*/
	    Shape(displayWidget, parent, dt)
{
} /*}}}*/

CrazyColoredShape::~CrazyColoredShape() /*{{{*/
{
} /*}}}*/

Square* CrazyColoredShape::mySquareType(int*, int, ShapeType) /*{{{*/
{
	// For the CrazyColoredSquare, all Squares are dressed with the same "brownian color".
	// So the arguments are useless.

	Square* res = new CrazyColoredSquare(displayer, dt);
	return res;
} /*}}}*/
